<template>
  <div>
    <!-- 子页面视窗 -->
    <div class="view-see">
      <router-view />
    </div>
    <van-tabbar
      v-model="currentPage"
      active-color="#fc662c"
      route
    >
      <van-tabbar-item
        icon="home-o"
        to="/home"
        name="HomePage"
      >
        主页
      </van-tabbar-item>
      <van-tabbar-item
        icon="chat-o"
        to="/qa"
        name="QaPage"
      >
        问答
      </van-tabbar-item>
      <van-tabbar-item
        icon="tv-o"
        to="/video"
        name="VideoPage"
      >
        视频
      </van-tabbar-item>
      <van-tabbar-item
        icon="manager-o"
        to="/mine"
        name="MinePage"
      >
        我的
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'MainPage',
  data() {
    return {
      currentPage: 'homepage',
    };
  },
  methods: {

  },
}
</script>

<style lang="less">
  .view-see {
    height: calc(100vh - 50px);
    >div {
      height: 100%;
    }
  }
</style>
